<{include file="common/header.tpl"}>
<script src="<{$smarty.const._CDN_}>/resource/laydate/laydate.js" type="text/javascript"></script>
<script src="<{$smarty.const._CDN_}>/resource/layer/layer.js" type="text/javascript"></script>
<style>
.fcontent .track { margin: 1em 2em; padding: 1em; background-color: #eee; border: 1px solid silver; }
ul { list-style: none; line-height: 2em; }
ul li { display: inline-block; width: 200px; }
ul li img { position: relative; bottom: -20px; padding-left: 1em; }
.submit { padding: 3em; }
</style>

<div class="fcontent">

    <div class="track">
        <h3><{$track.name}></h3>
        <p><img src="<{$track.thumb}>" width="128"></p>
        <p>行程天数: <{$track.days}> 天</p>
        <p>可接待人数: <{$track.serviceMinPersons}>人 到 <{$track.serviceMaxPersons}>人</p>
        <p>行程介绍: <{$track.summary}></p>
    </div>


    <form action="" method="POST" onSubmit="return check()">
    <ul>
    <{foreach from=$cates item="cat"}>
        <li><input type="checkbox" name="cid[]" value="<{$cat.id}>" <{if $cat.id|in_array:$catIds}>checked="checked"<{/if}>> 
            <span><{$cat.name}></span>
            <img src="<{$cat.iconUrl}>" width="48"></li>
    <{/foreach}>
    </ul>

    <p class="submit"><input type="submit" name="submitOp" value="设置"></p>
    </form>
</div>
<script type="text/javascript">
function check (){
    if(!$("input[type='checkbox']").is(':checked')){
      layer.msg('请选择类型');
      return false;
    }

}
</script>
<{include file="common/footer.tpl"}>

